<form action="" class="form-horizontal" role="form">

	<div class="form-group">
		<label class="col-sm-1 control-label">导航显示名称</label>
		<div class="col-sm-3">
			<input type="text" class="form-control" name="name" placeholder="显示名称" datatype="*" value="{$moduleNaigate.name}"/>
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-1 control-label">导航显示标题</label>
		<div class="col-sm-3">
			<input type="text" class="form-control" name="title" placeholder="导航显示标题" datatype="*" value="{$moduleNaigate.title}"/>
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-1 control-label">商户具体地址</label>
		<div class="col-sm-3">
			<input id="suggestId" type="text" class="form-control" name="address" placeholder="商户的具体地址" datatype="*" value="{$moduleNaigate.address}"/>
		</div>
		<input type="button" class="btn btn-primary" id="positioning" value="搜索" />
	</div>
	
	<div class="form-group">
		<label class="col-sm-1 control-label">商户地图</label>
		<div class="row">
			<div class="col-sm-2">
                <div id="l-map" style="width: 605px;height: 320px;margin-top: 10px;">
                    <i class="icon-spinner icon-spin icon-large"></i>地图加载中...
                </div>
                <div id="r-result">
                    <label class="control-label">经度</label><input type="text" class="form-control" id="lng" name="lng" value="" />
                    <label class="control-label">纬度</label><input type="text" class="form-control" id="lat" value="" name="lat" />
                </div>
				<script type="text/javascript" src="http://api.map.baidu.com/api?ak=csuXsrCIGY47W7Gtr509mq8A&v=1.1&services=true"></script>
				<script src="__PUBLIC__/Style/My/Default/js/map.js"></script>
				<script type="text/javascript">
			        $(function() {
			            baidu_map({$pointJSON});
			        });
			    </script>
			</div>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-sm-offset-1 col-sm-8">
			<button type="submit" class="btn btn-primary submit" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/indexPost">保存更改</button>
		</div>
	</div>
</form>

<script type="text/javascript">
	$(function(){
		$("#province").change(function(){
			var pro = $(this).val()
			$.post("__CONTROLLER__/getCityPost", {code: pro} ,function(data){
				$("#city").html(data);
			});
		});
		
		$("#city").change(function(){
			var cit = $(this).val()
			$.post("__CONTROLLER__/getAreaPost", {code: cit} ,function(data){
				$("#area").html(data);
			});
		});
	});
</script>